package aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

import org.apache.log4j.Logger;
import org.springframework.aop.MethodBeforeAdvice;

public class LoggingBeforeAdvice implements MethodBeforeAdvice {
	private Logger log = Logger.getLogger(getClass());
	
	public void before(Method method, Object[] args, Object target) throws Throwable {
		log.info("The method " + method.getName() + "() begins with " + Arrays.toString(args));
	}

}
